package cn.ywsj.ywsjmidtier.service;

import cn.ywsj.ywsjmidtier.common.Connect;
import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(url = Connect.XSX_URL,name = "xsx")
public interface WechatUserBankCardFeign {

    @RequestMapping({"/wechat/member/userbankcard/ajaxuserbankcardlist"})
    String ajaxUserBankCardList(@RequestParam("jsonObject") JSONObject jsonObject);

    @PostMapping(value = {"/wechat/member/userbankcard/adduserbankcard"})
    String addUserBankCard(@RequestParam("jsonObject") JSONObject jsonObject, @RequestParam("result")BindingResult result);

    @GetMapping(value = {"/wechat/member/userbankcard/getbankcard"})
    String getBankCard();

    @GetMapping(value = {"/wechat/member/userbankcard/gettheirbankcard"})
    String getTheirBankCard(@RequestParam("jsonObject") JSONObject jsonObject);

    @PostMapping(value = {"/wechat/member/userbankcard/deletebindingcard"})
    String deleteBindingCard(@RequestParam("jsonObject") JSONObject jsonObject,@RequestParam("result") BindingResult result);

    @PostMapping(value = {"/wechat/member/userbankcard/updatebankcarddefaultstatus"})
    String updateBankCardDefaultStatus(@RequestParam("jsonObject") JSONObject jsonObject,@RequestParam("result") BindingResult result);

}
